#ifndef PARAWIDGET_H
#define PARAWIDGET_H

#include <QWidget>

namespace Ui {
class ParaWidget;
}

class ParaWidget : public QWidget
{
    Q_OBJECT

public:
    explicit ParaWidget(QWidget *parent = nullptr);
    ~ParaWidget();
    void  ShowPara_Tr(float value);
    void  ShowPara_Tz(float value);
    void  ShowPara_Tg(float value);
    void  ShowPara_DeltaK(float value);
    void  ShowPara_KPara(float value);
    void  ShowPara_Vg(float value);
    void  ShowPara_Vss(float value);
    void  ShowPara_AWFA_WD(float value);
    void  ShowPara_AWFA_WMin(float value);
    void  ShowPara_AWFA_WMax(float value);
    void  ShowPara_AWFA_WAC(float value);
    void  ShowPara_trackPeriod(quint8 T);
    void  ShowPara_trackError_Min(float value);
    void  ShowPara_trackError_Max(float value);

signals:
    void TrReset(float Tr);
    void TzReset(float Tz);
    void DeltaKReset(float Deltak);
    void KParaReset(float KPara);
    void TrackParaReset(quint8 whichPara,float Value);
    void AWFAParaReset(quint8 whichPara,float Value);

private slots:
    void on_pushButton_Tr_clicked();

    void on_pushButton_Tz_clicked();

    void on_pushButton_DeltaK_clicked();

    void on_pushButton_KPara_clicked();

    void on_pushButton_trackPeriod_clicked();

    void on_pushButton_trackErrorMin_clicked();

    void on_pushButton_trackErrorMax_clicked();

    void on_pushButton_awfaWdefault_clicked();

    void on_pushButton_awfaAC_clicked();

    void on_pushButton_awfaWmin_clicked();

    void on_pushButton_awfaWmax_clicked();

private:
    Ui::ParaWidget *ui;
};

#endif // PARAWIDGET_H
